package demo01;

public class huiwenshu {
	 public static void main(String[] args) {
			int count = 0;
			for (int i = 10000; i < 100000; i++) {
				int ge   = i % 10;
				int shi  = i / 10 % 10;
				int qian = i / 10 / 10 / 10 % 10;
				int wan  = i / 10 / 10 / 10 / 10 % 10;
	 
				if(ge == wan && shi == qian){
					System.out.print(i + "\t");
					count++;
					
					if(count % 5 == 0){
						System.out.println();
					}
				}
			}
		}
}